package com.sgsg.statemodule;

import android.util.Log;

class NoonState extends State {
    @Override
    public void writeProgram(Work w) {
        if(w.getHour()<13){
            Log.i("tag","当前时间："+w.getHour()+"----中午时间饿了，犯困");
        }else{
            w.setState(new AfternoonState());
            w.writeProgram();
        }
    }
}
